package com.guomao.interfaces;

import com.guomao.util.Log;
import org.springframework.stereotype.Service;

//execution(public Integer com.guomao.interfaces.CalculatorImpl.add(Integer,Integer))

//@Service
public class CalculatorImpl implements Calculator {
//public class CalculatorImpl {


//    @Override
//    public Integer add() {
//        return 10;
//    }

    @Override
    public Integer add(Integer x, Integer y) {
        return x + y;
    }

    @Override
    public Integer sub(Integer x, Integer y) {
        return x - y;
    }

    @Override
    public Integer mul(Integer x, Integer y) {
        return x * y;
    }

    @Override
    public Integer div(Integer x, Integer y) {
        return x / y;
    }
}
